from .IndexController import index_controller
from .AdminController import admin_controller
from .RoleController import role_controller
from .AuthController import auth_controller

default_blueprint = (
    # (蓝本，前缀)
    (index_controller, ""),
    (admin_controller, "/admin"),
    (role_controller, "/role"),
    (auth_controller, "/menu"),
)

def register_blueprint(app):
    for blueprint, url_prefix  in default_blueprint:
        app.register_blueprint(blueprint, url_prefix=url_prefix)
